package cn.net.sdjx.param;

import java.util.Date;

public class WaiterParam {
	private Integer pageNum;
	private String name;// 姓名
	private Integer numPerPage;
	private Integer startIndex;
	private String idcard;// 身份证
	private String affiliation;// 所属机构
	private String code;
	private String sex;// 性别
	private String education;// 学历
	private Date time;// 从业时间
	private String major;
	private Date authentication;// 认证时间
	private String img;
	private Integer status;
	private Integer age;
	private Integer id;
	private String level;
	private String year;
	private String month;
	private String stime;
	private String etime;
	private String vatime;
	private String address;



	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}


	public String getVatime() {
		return vatime;
	}

	public void setVatime(String vatime) {
		this.vatime = vatime;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public String getStime() {
		return stime;
	}

	public void setStime(String stime) {
		this.stime = stime;
	}

	public String getEtime() {
		return etime;
	}

	public void setEtime(String etime) {
		this.etime = etime;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public Date getAuthentication() {
		return authentication;
	}

	public void setAuthentication(Date authentication) {
		this.authentication = authentication;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getPageNum() {

		if(pageNum==null){
			this.pageNum =1;
		}
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getNumPerPage() {
    if(numPerPage==null){
      this.numPerPage =10;
    }
		return numPerPage;
	}

	public void setNumPerPage(Integer numPerPage) {
		this.numPerPage = numPerPage;
	}

	public Integer getStartIndex() {
		this.startIndex = ((this.pageNum - 1) * this.numPerPage);
		return this.startIndex <= 0 ? 0 : this.startIndex;
	}

	public void setStartIndex(Integer startIndex) {
		this.startIndex = startIndex;
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public String getAffiliation() {
		return affiliation;
	}

	public void setAffiliation(String affiliation) {
		this.affiliation = affiliation;
	}

}
